home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-23 | 4.0 KB | 19 lines | [TEXT/KAHL] |
- /* CButton.c */
-
- #include "CButton.h"
- #include "CWindow.h"
- #include "CEnclosure.h"
-
-
- #define MinTime (5) /* minimum time to hilite a button when pressed by key */
-
-
- /* initialize the button */
- void CButton::IButton(LongPoint Start, LongPoint Extent, char Key, short Modifiers,
- CWindow* TheWindow, CEnclosure* TheEnclosure)
- {
- ERROR(Initialized == True,PRERR(ForceAbort,
- "CButton::IButton called on already initialized object."));
- EXECUTE(Initialized = True);
- KeyEquivalent = Key;
- KeyModifiers